'use strict';

const Service = require('egg').Service;

class RegistryService extends Service {
    //注册
    async registry(username,password) {
        await this.app.mysql.query('insert into userlist (username,password) values (?,?)', [username,password]); 
    }
}

module.exports = RegistryService;
